package ui.arena;

import org.uqbar.arena.actions.MessageSend;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.Window;
import org.uqbar.arena.windows.WindowOwner;

@SuppressWarnings("serial")
public class TransaccionErrorWindow extends Window<TransaccionError> {
	
	public TransaccionErrorWindow(WindowOwner parent, TransaccionError model){
		super(parent, model);
	}

	@Override
	public void createContents(Panel mainPanel) {
		this.setTitle(TituloVentanas.getInstance().getTituloVentana());
		Label label = new Label(mainPanel);
		label.setText(this.getModelObject().getMensaje());
		Button boton = new Button(mainPanel);
		boton.setCaption("Aceptar").onClick(new MessageSend(this, "close"));		
	}

}
